package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 井筒目的层 对应表 BA_TARGETSTRATUM
@Table(name = "BA_TARGETSTRATUM")
public class BA_TargetStratum extends BABaseEntity {
    @Id
    @GenericGenerator(name="lithologyGenerator", strategy="uuid")
    @GeneratedValue(generator="lithologyGenerator")
    @Column(name = "BA_TARGETSTRATUM_ID")
    private String BA_TargetStratum_ID;

    @Basic
    @Column(name = "STRATUMTYPE", length = 20)
    private String stratumType;

    @Basic
    @Column(name = "STRATUMNAME", length = 50)
    private String stratumName;

    @ManyToOne
    @JoinColumn(name="ba_well_id")
    private BA_Well well;

}
